//
//  LogsViewController.h
//  iRMAP
//
//  Created by Ryan Enguero on 4/2/14.
//  Copyright (c) 2014 engueroryan. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface LogsViewController : UIViewController <UITableViewDataSource,UITableViewDelegate, UIPickerViewDataSource, UIPickerViewDelegate>{
    
    UIView *refreshHeaderView;
    UILabel *refreshLabel;
    UIImageView *refreshArrow;
    UIActivityIndicatorView *refreshSpinner;
    BOOL isDragging;
    BOOL isLoading;
    NSString *textPull;
    NSString *textRelease;
    NSString *textLoading;
}

@property (strong,nonatomic) NSMutableArray *logsList;

@property (strong, nonatomic) IBOutlet UILabel *lblLogs;
@property (strong, nonatomic) IBOutlet UIView *datePicker;

@property (strong, nonatomic) IBOutlet UIButton *btnCancelProp;
@property (strong, nonatomic) IBOutlet UIButton *btnDoneProp;

@property (strong, nonatomic) IBOutlet UIPickerView *LogPicker;

@property (strong, nonatomic) IBOutlet UITableView *tblLogs;


@property (nonatomic, retain) UIView *refreshHeaderView;
@property (nonatomic, retain) UILabel *refreshLabel;
@property (nonatomic, retain) UIImageView *refreshArrow;
@property (nonatomic, retain) UIActivityIndicatorView *refreshSpinner;
@property (nonatomic, copy) NSString *textPull;
@property (nonatomic, copy) NSString *textRelease;
@property (nonatomic, copy) NSString *textLoading;

- (void)setupStrings;
- (void)addPullToRefreshHeader;
- (void)startLoading;
- (void)stopLoading;
- (void)refresh;

- (IBAction)btnLogs:(id)sender;
- (IBAction)btnCancel:(id)sender;
- (IBAction)btnDone:(id)sender;


@end
